import {
  FormOutlined,
  HomeOutlined,
  UserOutlined,
  UnlockOutlined
} from '@ant-design/icons';

const menu = [
  {
    title:'首页',
    path:'/',
    icon:HomeOutlined,
    permission:1
  },
  {
    title:'用户管理',
    path:'/user',
    icon:UserOutlined,
    permission:3,
    children:[
      {
        title:'用户列表',
        path:'/user',
        icon:UserOutlined,
        permission:3
      }
    ]
  },
  {
    title:'权限管理',
    path:'/right-manage',
    icon:UnlockOutlined,
    permission:2,
    children:[
      {
        title:'角色列表',
        path:'/right-manage/roles',
        icon:UnlockOutlined,
        permission:2
      },
      {
        title:'权限列表',
        path:'/right-manage/rights',
        icon:UnlockOutlined,
        permission:2
      }
    ]
  },
  {
    title:'文章管理',
    path:'/article-manage',
    icon:FormOutlined,
    permission:1,
    children:[
      {
        title:'文章列表',
        path:'/article-manage/list',
        icon:FormOutlined,
        permission:1
      },
      {
        title: "文章分类",
        path: "/article-manage/category",
        icon:FormOutlined,
        permission:2
      }
    ]
  }
]

export default menu